
import request from '../utils/request'

export function getFilmList(params) {
    return request({
        methods: 'GET',
        url: '/common/filmInfoList',
        params,
    })
}

export function getFilmDetail(id) {
    return request({
        methods: 'GET',
        url: `/common/filmDetail/${id}`,
    })
}

export function getMzFilmDetail(pageNum) {
    return request({
        methods: 'GET',
        url: `/gateway?cityId=320500&pageNum=${pageNum}&pageSize=10&type=1&k=2340614`,
        headers: {
            "X-Host": "mall.film-ticket.film.list"
        }
    })
}

export function getMzFilmById(id) {
    return request({
        url: `/gateway?filmId=${id}&k=7466262`,
        headers: {
            "X-Host": "mall.film-ticket.film.info"
        }
    })
}
// 2
export function getBu() {
    return request({
       
        // methods: 'GET',
        // url: '/common/filmInfoList',
        // params,

        //这个才是正在热映的接口
        baseURL: 'https://m.maizuo.com',
        methods: 'GET',
        url: '/gateway?cityId=440300&pageNum=1&pageSize=10&type=2&k=7488717',
        headers:{'X-Host':'mall.film-ticket.film.list'}
    })
}
// 影院

export function getYingYuan() {
    return request({
     
        // methods: 'GET',
        // url: '/common/filmInfoList',
        // params,

        //这个才是正在热映的接口
        baseURL: 'https://m.maizuo.com',
        methods: 'GET',
        url: '/gateway?cityId=440300&ticketFlag=1&k=3573672',
        // headers:{'X-Host':'mall.film-ticket.film.list'}
        headers:{'X-Host':'mall.film-ticket.cinema.list'}
    })
}
//咨询
export function getZiXun() {
    return request({

        // methods: 'GET',
        // url: '/common/filmInfoList',
        // params, 

        //这个才是正在热映的接口
        baseURL: 'https://m.maizuo.com',
        methods: 'GET',
        url: 'gateway?actId=ElzMZU125260',
        // headers:{'X-Host':'mall.film-ticket.film.list'}
        headers:{'X-Host':'mall.act.static-page.info'}
    })
}

// 影院点击里面的

export function getYingYuan1() {
    return request({
     
        // methods: 'GET',
        // url: '/common/filmInfoList',
        // params,

        //这个才是正在热映的接口
        baseURL: 'https://m.maizuo.com',
        methods: 'GET',
        url: '/gateway/?cinemaId=11668&k=5741821',
        // headers:{'X-Host':'mall.film-ticket.film.list'}    'mall.film-ticket.cinema.info'
        headers:{'X-Host':'mall.film-ticket.film.cinema-show-film'}
    })
}
// 影院点击里面的
export function getYingYuan2(cinemaId) {
    return request({
     
        // methods: 'GET',
        // url: '/common/filmInfoList',
        // params,

        //这个才是正在热映的接口
        baseURL: 'https://m.maizuo.com',
        methods: 'GET',
        url: `/gateway/?cinemaId=${cinemaId}&k=5652592`,
        // headers:{'X-Host':'mall.film-ticket.film.list'}    'mall.film-ticket.cinema.info'
        headers:{'X-Host': 'mall.film-ticket.cinema.info'}
    })
}
// 影院点击里面的    时间
export function getShiJie(filmId,date,cinemaId) {
    return request({
     
        // methods: 'GET',
        // url: '/common/filmInfoList',
        // params,

        //这个才是正在热映的接口
        baseURL: 'https://m.maizuo.com',
        methods: 'GET',
        url: `gateway/?filmId=${filmId}&cinemaId=${cinemaId}&date=${date}&k=2491613`,
        // headers:{'X-Host':'mall.film-ticket.film.list'}    'mall.film-ticket.cinema.info'
        headers:{'X-Host': 'mall.film-ticket.schedule.list'}
    })
}
